import java.util.Date;


public class MyDate extends Date {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public MyDate(String string) {
		super(string);
	}
	public MyDate() {
		super();
	
	}
	public String TimeToDatabase() {
		String value = this.getHours()+":"+this.getMinutes()+":"+this.getSeconds();
		return value;
	}
	public String DayToDatabase() {
		String value = (this.getMonth()+1)+"-"+this.getDate()+"-"+(this.getYear()+1900);
		return value;
	}
	public String EntireToDatabase() {
		String value = (this.getMonth()+1)+"-"+this.getDate()+"-"+(this.getYear()+1900)+" "+this.getHours()+":"+this.getMinutes()+":"+this.getSeconds();
		return value;
	}
}
